package com.xydtech.ecard.config.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 服务模块内部新闻对象 ecard_serve_module_news
 *
 * @author JHON
 * @date 2022-06-23
 */
public class EcardServeModuleNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 功能ID
     */
    @Excel(name = "功能ID")
    private Long functionId;

    /**
     * 新闻LOGO
     */
    @Excel(name = "新闻LOGO")
    private String newsLogo;

    /**
     * 新闻标题
     */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /** 新闻概述 */
    @Excel(name = "新闻概述")
    private String summary;

    /**
     * 新闻内容
     */
    @Excel(name = "新闻内容")
    private String newsContent;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String sts;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNumber;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFunctionId(Long functionId) {
        this.functionId = functionId;
    }

    public Long getFunctionId() {
        return functionId;
    }

    public void setNewsLogo(String newsLogo) {
        this.newsLogo = newsLogo;
    }

    public String getNewsLogo() {
        return newsLogo;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("functionId", getFunctionId())
                .append("newsLogo", getNewsLogo())
                .append("newsTitle", getNewsTitle())
                .append("newsContent", getNewsContent())
                .append("summary", getSummary())
                .append("sts", getSts())
                .append("orderNumber", getOrderNumber())
                .append("createTime", getCreateTime())
                .toString();
    }
}
